package day1701;

import java.util.*;

public class day170102 {
    public static void main(String[] args) {
        String a =new Scanner(System.in).nextLine();
        HashMap<Character,Integer> b = new HashMap<>();
        for(int i =0;i<a.length();i++){
            char c =a.charAt(i);
            if(b.get(c)==null)
                b.put(c,1);
            else
                b.put(c,b.get(c)+1);
        }
        System.out.println(b);

//        Set<Character> ch = b.keySet();//键寻址加加强for循环
//        for(char x :ch){
//            System.out.println(b.get(x));
//        }

//        Set<Map.Entry<Character,Integer>> ch = b.entrySet();//对象寻址加加强for循环
//        for(Map.Entry cc : ch){
//            System.out.println(cc.getKey());
//            System.out.println(cc.getValue());
//        }

//        Set<Character> ch = b.keySet();//键寻址加迭代器遍历
//        Iterator chh = ch.iterator();
//        while(chh.hasNext()){
//            System.out.println(b.get(chh.next()));
//        }

//        Set<Map.Entry<Character,Integer>> ch = b.entrySet();//对象寻址加迭代器遍历
//        Iterator<Map.Entry<Character,Integer>> chh = ch.iterator();
//        while (chh.hasNext()){
//            System.out.println(chh.next());
//        }



    }
}
